//Array.prototype.unshift
function hundred(num) {
    if (num === 101) return
    res += num
    hundred(num+1)
    return res
}
let res = 0
console.log(hundred(0));
//2
function sum(num){
    if(num === 1) return 1
    return num + sum(num - 1);
}
console.log(sum(100));
